
/**
 * 深拷贝
 */
const deepCopy = (obj: Object) => {
  return structuredClone(obj)
}

/**
 * 延迟执行
 */
const timeSleep = (time: number) => {
  return new Promise((resolve) => {
    setTimeout(() => {
      resolve(true)
    }, time)
  })
}

export {
  deepCopy,
  timeSleep,
}
